#!/bin/bash
#author:chognjilili
#lamp的环境搭建脚本
HERE=`cd $(dirname $0); pwd -P` #脚本目录
HERE="${HERE}/"
echo ${HERE}
MYLAMP="/var/local/mylamp/" #安装目录
TOOLS="${MYLAMP}tools/" #工具目录
PACKAGE="$(pwd)/package/" #安装包目录
APACHEDIR="${MYLAMP}apache/" #Apache安装目录
PHPDIR="${MYLAMP}php/" #php安装目录

echo "输入你的系统，[1]是cenos，[2]是Ubuntu"
read -p "输入你的安装方式：" linuxsys
if [ ${linuxsys} -eq 1 ]
then 
    source ${HERE}yum.sh #依赖安装
else
    source ${HERE}apt.sh #依赖安装
fi



source ${HERE}mysqlinstall.sh #mysql
source ${HERE}apacheInstall.sh #Apache
source ${HERE}phpinstall.sh #php
source ${HERE}nginxinstall.sh #nginx



